package com.devunion.bogdan.model.event;

import com.devunion.bogdan.model.project.Project;
import com.devunion.bogdan.model.project.Paper;
import com.devunion.bogdan.model.project.Paper;
import com.devunion.bogdan.model.project.Page;

/**
 * @author Viktar Liaskovich
 */
public class PageEvent extends BaseEvent<Paper> {
    private Page page;

    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public PageEvent(Paper source, Page page) {
        super(source);

        this.page = page;
    }

    public Page getPage() {
        return page;
    }
}
